#ifndef _FONT_H_
#define _FONT_H_

/**
 * \file     font.h
 * \brief    font 
 * \author   fatma.jaafar@esprit.tn
 * \version  0.
 * \date     first release 
 *
 * This file describe public font structure and functions.
 *
 * ----------------------------------------
 * Copyright (C) 2014 FATMA JAAFAR
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

/**
 * \defgroup GAME GAME
 * \{ */

/**
 * \defgroup FONT FONT
 * \{ */


/* =================================80======================================= */
/*                               INCLUDES                                     */
/* =================================80======================================= */
#include "structures.h"

/* =================================80======================================= */
/*                           STRUCTURE GLOBAL                                 */
/* =================================80======================================= */

/**
 * \brief definie une variable globale de gestion du jeu.
 */
Gestion jeu;

/**
 * \brief definie une variable globale de gestion des fonts.
 */
TTF_Font *font;

/* =================================80======================================= */
/*                               FUNCTIONS                                    */
/* =================================80======================================= */

/**
 *
 * \brief   charger la font.
 *
 * \param   char* name                        : nom de la font.
 * \param   int   size                        : taille de la font.
 * \return  TTF_Font 
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
TTF_Font *loadFont(char *name, int size);

/**
 *
 * \brief   libérer la font.
 *
 * \param   TTF_Font*   font                  : pointeur sur font.
 * \return  
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
void closeFont(TTF_Font *font);

/**
 *
 * \brief   afficher la font.
 *
 * \param   char* 	text                  : text à afficher.
 * \param   int 	 x 		      : coordonnes x abscisse.
 * \param   int 	 y 		      : coordonnes y ordonnee.
 * \param   TTF_Font*   font                  : pointeur sur font.
 * \return  
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */
void drawString(char *text, int x, int y, TTF_Font *font);


// FONT
/** \} */
// GAME
/** \} */

#endif /* _FONT_H_ */
